package com.fit.dao.user;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.entities.User;

public interface UserDAO {

	@CommitAfter
	public boolean save(User user);
	
	public User findByUsername(String username);
	
	public List<User>  findAll();
	
	@CommitAfter
	public boolean deleteByUsername(String username);

	@CommitAfter
	public boolean update(User user);
	
	public User findByUserNameAndPassword(String username, String password);

}
